Skip to main content

PopupMenu

Type

statement

Summary

Displays a popup menu. Menu:An expression that evaluates to a string, which describes the menu items. Location:An expression that evaluates to a Point relative to the current widget. The topleft corner of the popup window will be placed here.

Syntax

popup menu <mMenu> at <mAt>

Description

Use to popup a menu at the specified location.

Examples

private variable mFont as Font

public handler OnMouseDown()
popup menu "Helvetica\nTimes New Roman\nArial" at the mouse position
if the result is not nothing then
put font (the result) at size 20 into mFont
redraw all
end if
end handler

public handler OnPaint()
...
set the font of this canvas to mFont
...
end handler
Thank you for your feedback!

Was this page helpful?